<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
<script type="text/javascript" src="../../../src/base/_core.js"></script>
<script type="text/javascript">
    var arr = [1, 2, 'a', 'b'];
    line.forEach(arr, function (v) {
        if (v == 1) {
            return false;
        }
        console.log('v :', v);
    });
    ['a', 'b', 'c', 'd', 'e'].some(function (v) {
        //console.log(v)
    });

    ['a', 'b', 'c','d','e'].every(function(v) {
        //console.log(v)
    });
    //停止forEach里层循环的方法，但是不优雅，算了，不用！
    try{
        [1,2,3].forEach(function(el){
            if(el == 3){
                throw "break"
            }
            console.log(el);
        })
    }catch(e){}

</script>
</body>
</html>